package org.rency.crawler.dal.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 描述: 元数据配置
 * 类型: JAVA<br>
 * 最近修改时间:2017/8/4 11:10<br>
 *
 * @author CaiyuRen
 * @version [版本号, V1.0]
 * @since 2017/8/4 11:10
 */
@Document(collection = "metaResource")
@CompoundIndexes({
    @CompoundIndex(name = "uidx_name", def = "{'firLevelName':1,'secLevelName':1}", unique = true)})
public class MetaResourceDO extends BaseDO {

  @Id
  private String id;

  private String firLevelName;

  private String firLevelValue;

  private String firLevelDesc;

  private String secLevelName;

  private String secLevelValue;

  private String secLevelDesc;

  /**
   * 是否启用(Y/N)
   */
  private String enable;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getFirLevelName() {
    return firLevelName;
  }

  public void setFirLevelName(String firLevelName) {
    this.firLevelName = firLevelName;
  }

  public String getFirLevelValue() {
    return firLevelValue;
  }

  public void setFirLevelValue(String firLevelValue) {
    this.firLevelValue = firLevelValue;
  }

  public String getFirLevelDesc() {
    return firLevelDesc;
  }

  public void setFirLevelDesc(String firLevelDesc) {
    this.firLevelDesc = firLevelDesc;
  }

  public String getSecLevelName() {
    return secLevelName;
  }

  public void setSecLevelName(String secLevelName) {
    this.secLevelName = secLevelName;
  }

  public String getSecLevelValue() {
    return secLevelValue;
  }

  public void setSecLevelValue(String secLevelValue) {
    this.secLevelValue = secLevelValue;
  }

  public String getSecLevelDesc() {
    return secLevelDesc;
  }

  public void setSecLevelDesc(String secLevelDesc) {
    this.secLevelDesc = secLevelDesc;
  }

  public String getEnable() {
    return enable;
  }

  public void setEnable(String enable) {
    this.enable = enable;
  }
}
